<template>
  <div>
    <h2>Demo</h2>
    <p :yux="'ytt'|capitalize">{{'yuxf'|capitalize}}</p>
    <p>{{552695232020.5269523|zhMoney}}</p>
    <el-button @click="mock">Mock</el-button>
    <el-button @click="getUserInfo">getUserInfo</el-button>
  </div>
</template>
<script>
import api from "@/api/userCenter";
export default {
  mounted() {
    window.vue = this;
  },
  data() {
    return {
      res: {}
    };
  },
  methods: {
    mock() {
      console.log("mock--");
      let mockStr = this.$options.filters["capitalize"]("mock");
      console.log(mockStr);
      this.testMixin();
    },
    getUserInfo() {
      api.getUserInfo().then(res => (this.res = res));
    }
  }
};
</script>